<html>
<head><meta charset="utf-8"><title>Rust Compiler Error Index · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Rust.20Compiler.20Error.20Index.html">Rust Compiler Error Index</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="246358808"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Rust%20Compiler%20Error%20Index/near/246358808" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jack Huey <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Rust.20Compiler.20Error.20Index.html#246358808">(Jul 18 2021 at 04:16)</a>:</h4>
<p>Where is the Rust Compiler Error Index (<a href="https://doc.rust-lang.org/error-index.html">https://doc.rust-lang.org/error-index.html</a>) generated (or manually written?) from? I noticed it doesn't completely match the compiler. (I found E0772 isn't there)</p>



<a name="246359412"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Rust%20Compiler%20Error%20Index/near/246359412" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mario Carneiro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Rust.20Compiler.20Error.20Index.html#246359412">(Jul 18 2021 at 04:34)</a>:</h4>
<p>It looks like it is generated by <a href="https://github.com/rust-lang/rust/blob/master/src/tools/error_index_generator/main.rs"><code>error_index_generator</code></a> which parses <a href="https://github.com/rust-lang/rust/blob/master/compiler/rustc_error_codes/src/error_codes.rs"><code>error_codes.rs</code></a></p>



<a name="246359419"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Rust%20Compiler%20Error%20Index/near/246359419" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mario Carneiro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Rust.20Compiler.20Error.20Index.html#246359419">(Jul 18 2021 at 04:34)</a>:</h4>
<p>E0772 is in the list, so it might just be that the generator hasn't been run in a while</p>



<a name="246359534"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Rust%20Compiler%20Error%20Index/near/246359534" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mario Carneiro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Rust.20Compiler.20Error.20Index.html#246359534">(Jul 18 2021 at 04:38)</a>:</h4>
<p>Well, actually the file seems to distinguish between two kinds of error codes - the first half of the file contains error codes with descriptions in markdown files and the second half has error codes with only short descriptions in comments, and E0772 is in the second part</p>



<a name="246359772"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Rust%20Compiler%20Error%20Index/near/246359772" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mario Carneiro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Rust.20Compiler.20Error.20Index.html#246359772">(Jul 18 2021 at 04:47)</a>:</h4>
<p>Ah, it looks like the HTML generator puts the error codes in the file, but with <code>display: none</code>. If you disable the CSS for <code>.error-undescribed { display: none; }</code> you will see it in the error index</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>